import axios from "~/axios";

export function getCoupon(page) {
  return axios.get("/coupon?page=" + page);
}

export function createCoupon(data) {
  return axios.post("/coupon" , data);
}

export function updateCoupon(id,data) {
  return axios.put(`/coupon/${id}`,data);
}

export function deleteCoupon(id) {
  return axios.delete(`/coupon/${id}`);
}